{include file='header.tpl'}
<div class="mtop"></div>
  <div class="main">
    <div class="content">
    {if !$smarty.get}
     <div class="catlist">{include file='categories.tpl'}</div>
	{/if}
      {if $smarty.get.cat}
	<div class="navigation">
	<a href="{$conf.conf_url}">{t}strona główna{/t}</a> &raquo; {if $subpage} {$subpage} {/if}
	</div>
	{if $photos}
	<div class="photlist">
	{section name=p loop=$photos}
	  <div class="photocat">
	  <div class="photoinfo">
		<div class="photostitle">
		  {$photos[p].photo_title}
		</div>
	      </div>
	    <div class="catimg">
	      {$photos[p].link}
	      {*$photos[p].rating*}
	    </div>
	    {if $conf.conf_votes > 0}
	    {$photos[p].oceny}
	    {/if}
	    {if $conf.conf_comments > 0}
	      <div class="comm">#{$photos[p].com_link}</div>
	      {/if}
	   
	  </div>
	{/section}{*$rating*}
		    <div class="clr"></div>
	  </div>
	  {else}
	  <div class="entry">
	    <div class="empty">{t}Brak zdjęć w tej kategorii...{/t}</div>
	  </div>
	{/if}
      {/if}
 {if $pagin}
{$pagin}
{/if}
   
    </div>
    <div class="sidebar">
    {include file='right.tpl'}
    </div>
    <div class="clr"></div>
  </div>
    <div class="mbottom"></div>
{include file='footer.tpl'}